package com.cnfangmao.masterdata.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 主数据元数据日志表
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
@TableName("t_basic_data_metadata_log")
public class BasicDataMetadataLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志Id
     */
    @TableId("log_id")
    private String logId;
    /**
     * 主数据元数据Id
     */
    @TableField("metadata_id")
    private String metadataId;
    /**
     * 修改目标对象类型
1：主数据元数据
2：主数据字段
3：主数据规则
4：主数据字段映射关系

     */
    @TableField("modify_target_type")
    private Integer modifyTargetType;
    /**
     * 修改前值
     */
    @TableField("before_value")
    private String beforeValue;
    /**
     * 修改后值
     */
    @TableField("after_value")
    private String afterValue;
    /**
     * 创建时间
     */
    @TableField("created_on")
    private Date createdOn;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 修改时间
     */
    @TableField("modified_on")
    private Date modifiedOn;
    /**
     * 修改人
     */
    @TableField("modified_by")
    private String modifiedBy;


    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getMetadataId() {
        return metadataId;
    }

    public void setMetadataId(String metadataId) {
        this.metadataId = metadataId;
    }

    public Integer getModifyTargetType() {
        return modifyTargetType;
    }

    public void setModifyTargetType(Integer modifyTargetType) {
        this.modifyTargetType = modifyTargetType;
    }

    public String getBeforeValue() {
        return beforeValue;
    }

    public void setBeforeValue(String beforeValue) {
        this.beforeValue = beforeValue;
    }

    public String getAfterValue() {
        return afterValue;
    }

    public void setAfterValue(String afterValue) {
        this.afterValue = afterValue;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getModifiedOn() {
        return modifiedOn;
    }

    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    @Override
    public String toString() {
        return "BasicDataMetadataLog{" +
        "logId=" + logId +
        ", metadataId=" + metadataId +
        ", modifyTargetType=" + modifyTargetType +
        ", beforeValue=" + beforeValue +
        ", afterValue=" + afterValue +
        ", createdOn=" + createdOn +
        ", createdBy=" + createdBy +
        ", modifiedOn=" + modifiedOn +
        ", modifiedBy=" + modifiedBy +
        "}";
    }
}
